package com.kushuigu;

import com.kushuigu.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
//        new BookServiceImpl().save();
        ApplicationContext ctx = new ClassPathXmlApplicationContext(
                "applicationContext.xml");
        BookService bookService = (BookService) ctx.getBean("bookEbi");
        bookService.save();
    }
}